<?php /* Smarty version 2.6.18, created on 2009-11-19 00:15:09
         compiled from inquiries_orgdispatch.tpl */ ?>
<script type="text/javascript">	
	var calendar1 = new ekimo_calendar("f_show","f_date","From Date", "cal1Container");
	var calendar2 = new ekimo_calendar("t_show","t_date","To Date", "cal2Container");
</script>
<div id="main_content" width="100%">
<form name="MainQuery" method="POST" action="">
	<h1>Organization Dispatch</h1>
	<table width="100%" border="0">
		<tr>
			<td class="blue">
				<table width="100%">
					<tr>
						<td>
							<label for="entity_type">Entity Type:</label>
						</td>
						<td>
							<select name="entity_type" id="entity_type" 
							onChange="doajaxAction('/admin/inqCOCountries/entity_type/'+document.MainQuery.entity_type.value,0,'country')">
								<option value=""> --- </option>	
								<?php $_from = $this->_tpl_vars['orgtypes']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['orgtype']):
?>
								<option value="<?php echo $this->_tpl_vars['orgtype']['org_type']; ?>
"><?php echo $this->_tpl_vars['orgtype']['org_type']; ?>
</option>
								<?php endforeach; endif; unset($_from); ?>
							</select>
						</td>
					</tr>
					<tr>
						<td>
							<label for="country">Country: </label>
						</td>
						<td>
							<div id="country">
								<select name="country" id="country" onchange="">
									<option value=""> --- </option>
								</select>
							</div>
						</td>
					</tr>
					<tr>
						<td><label for="province">Province: </label></td>
						<td>
							<div id="province">
								<select name="province" id="province" onchange="">
									<option value=""> --- </option>
								</select>
							</div>
						</td>
					</tr>
					<tr>
						<td><label for="entity">Entity: </label></td>
						<td>
							<div id="entity">
								<select name="entity" id="entity" onchange="doajaxAction('/admin/inqCatchSelectView/view/'+document.MainQuery.view.value,0,'select_view')">
									<option value=""> --- </option>
								</select>
							</div>
						</td>
					</tr>
					<tr>
						<td><label for="po">PO number: </label></td>
						<td>
							<div id="po">
								<select name="po" id="po" onchange="doajaxAction('/admin/inqCatchSelectView/view/'+document.MainQuery.view.value,0,'select_view')">
									<option value=""> --- </option>
								</select>
							</div>
						</td>
					</tr>
					<tr>			
						<td><label for="f_date"> From Date: </label></td>
						<td>
							<input type="text" name="f_date" id="f_date">
							<a href="javascript:void(0);" id="f_show">
								<img alt="Calendar" src="/app/default/www/images/calendar.jpg" border="0"/>
							</a>
							<div id="cal1Container" style="display:none;position:absolute;"></div> 
						</td>
					</tr>
					<tr>
						<td><label for="t_date"> To Date: </label></td>
						<td>
							<input type="text" name="t_date" id="t_date">
							<a href="javascript:void(0);" id="t_show">
								<img alt="Calendar" src="/app/default/www/images/calendar.jpg" border="0"/>
							</a>
							<div id="cal2Container" style="display:none;position:absolute;"></div> 
						</td>
						<td colspan="3" align="right">
							<input type="button" value="Go" onclick="doajaxAction('/admin/inqODShowList/po/'+document.MainQuery.po.value+'/tdate/'+document.MainQuery.t_date.value+'/fdate/'+document.MainQuery.f_date.value,0,'data_table')">
						</td>
					</tr>
				</table>
			</td>
		</tr>
		<tr>
			<td colspan="3">
				<div id="data_table" width="100%"></div>
			</td>
		</tr>
	</table>
</form>
</div>